Skip to content

Conversation

chris-eibl
Copy link
Member

@chris-eibl chris-eibl commented Sep 23, 2025

Especially when using the meta (ALT) key.

For instance, Alt + b for

(r"\M-b", "backward-word"),

the first hit is swallowed in a Windwos Terminal.

It happens, when there is nothing to be read from the console, i.e.

def wait(self, timeout: float | None) -> bool:

returns False but there is data in self.event_queue.

return False
return True

def wait(self, timeout: float | None) -> bool:
Copy link
Member Author

@chris-eibl chris-eibl Sep 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is easy and brings us in sync with unix_console.py

def wait(self, timeout: float | None = None) -> bool:
"""
Wait for events on the console.
"""
return (
not self.event_queue.empty()
or bool(self.pollob.poll(timeout))
)
.

@chris-eibl
Copy link
Member Author

macOS test_ssl failure for sure unrelated :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant